<?php

namespace App\Http\Requests;

class Help extends Base
{

    public function rules()
    {
        $rules = [
            //unique:表名,字段名,排除ID,主键字段,条件字段,条件,
            'title' => 'required',
            'content' => 'required',
            'cate_pid' => 'required'
        ];
        return $rules;

    }

    public function messages()
    {
        return [
            'title.required' => '请填写标题',
            'content.required' => '请填写内容',
            'cate_pid.required' => '请选择类型',
        ];
    }
}
